#!/bin/env python

from game import *
from table import Table
from deck import Deck
from dealer import Dealer

p1 = Player()
p2 = Player()

talia = Deck()
stol = Table(talia)

p1.hand = talia.Give(2)
p2.hand = talia.Give(2)

stol.cards = talia.Give(5)

print "stan po rozdaniu:"
print "STOL: %s" % stol.cards
print "P1: %s" % p1.hand
print "P2: %s" % p2.hand

p1.PickStrongestHand(stol.cards)
p2.PickStrongestHand(stol.cards)

print "REZULTAT:"
print "P1 (%d) %s" % (p1.strength, p1.strongest_set)
print "P2 (%d) %s" % (p2.strength, p2.strongest_set)
if p1.strength > p2.strength:
	print "P1 wygral"
elif p2.strength > p1.strength:
	print "P2 wygral"
else:
	print "REMIS"


